package com.bupt.fmmall.dao;

import com.bupt.fmmall.entity.SalesOrder;
import com.bupt.fmmall.entity.SalesOrderVO;

import java.util.List;

public interface OrderDao {
    //1.根据顾客名称和订单状态批量查询订单
    List<SalesOrderVO> selectOrdersByNameAndState(String customerUserName,Integer orderStatusId);
    SalesOrder selectOrder(int orderId);//查询单个订单
    //2.增加一条订单
    int insertOrder(SalesOrder salesOrder);
    void deleteOrder(int orderId);//删除一条订单
    void updateOrder(SalesOrder salesOrder);//更新订单信息
}
